import Vue from 'vue'
import Router from 'vue-router'
import Login from "../view/login/Login";
import Layout from '../view/layout/Index'

import Employee from '../view/basic/Employee'
import Unfininished from '../view/basic/UnFininished'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {

      path: '/admin',
      name: 'Basic',
      component: Layout,
      children: [
       {
          path:'',
          name:'Emp',
          component:Employee
        }
      ]
    },
    {
      path: '/basic',
      name: 'Basic',
      component: Layout,
      children: [
       {
          path:'emp',
          name:'Emp',
          component:Employee
        },{
           path:'un',
           name:'Un',
           component:Unfininished
        }
      ]
    }
  ]
})
